<?php

class LoginForm extends sfForm
{
  public function configure()
  {
    $this->setWidgets(array(
      'login'    => new sfWidgetFormInput(),
      'password'   => new sfWidgetFormInput(),
    ));
    $this->widgetSchema->setNameFormat('login[%s]');
    
    
    $this->setValidators(array(
      'login'    => new sfValidatorString(array('required' => true)),
      'password'    => new sfValidatorString(array('required' => true)),
    ));
    
    
  }
}

